<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <script src="../jQuery-3.6.3.min.js"></script>
    <script src="../jqueryAPI.插件/jquery.validate.js"></script>
    <script src="../jqueryAPI.插件/jquery.validate.messages_zh.js"></script>
    <script>
        $(function () {
            $("#myform").validate({
                rules: {
                    myname: { required: true, maxlength: 6 },
                    email: { required: true, email: true }
                }
            })
        })
    </script>
</head>

<body>
    <form id="myform" method="post">
        <p><label>账号：<input id="myname" name="myname" type="text" required></label></p>
        <p><label>email:<input id="email" name="Email" type="email" required></label></p>
        <input type="submit" value="提交">
    </form>
</body>

</html>